package eu.jba.denshijisho.entity;

import java.io.Serializable;
import java.util.Date;

import eu.jba.denshijisho.util.WithId;

public class Stat implements WithId, Serializable{
	
	private static final long serialVersionUID = -3233261340990903418L;
	
	private Integer id;
	private Date nextDate;
	private Date previousDate;
	private Integer interval;
	private Integer reps;
	private Integer okAnswers;
	private Integer wrongAnswers;
	private Double ef;
	
	public Stat(Date nextDate, Date previousDate, Integer interval,
			Integer reps, Integer okAnswers, Integer wrongAnswers, Double ef) {
		super();
		this.nextDate = nextDate;
		this.previousDate = previousDate;
		this.interval = interval;
		this.reps = reps;
		this.okAnswers = okAnswers;
		this.wrongAnswers = wrongAnswers;
		this.ef = ef;
	}
	
	public Stat(Integer id, Date nextDate, Date previousDate, Integer interval,
			Integer reps, Integer okAnswers, Integer wrongAnswers, Double ef) {
		super();
		this.id = id;
		this.nextDate = nextDate;
		this.previousDate = previousDate;
		this.interval = interval;
		this.reps = reps;
		this.okAnswers = okAnswers;
		this.wrongAnswers = wrongAnswers;
		this.ef = ef;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getNextDate() {
		return nextDate;
	}
	public void setNextDate(Date nextDate) {
		this.nextDate = nextDate;
	}
	public Date getPreviousDate() {
		return previousDate;
	}
	public void setPreviousDate(Date previousDate) {
		this.previousDate = previousDate;
	}
	public Integer getInterval() {
		return interval;
	}
	public void setInterval(Integer interval) {
		this.interval = interval;
	}
	public Integer getReps() {
		return reps;
	}
	public void setReps(Integer reps) {
		this.reps = reps;
	}
	public Integer getOkAnswers() {
		return okAnswers;
	}
	public void setOkAnswers(Integer okAnswers) {
		this.okAnswers = okAnswers;
	}
	public Integer getWrongAnswers() {
		return wrongAnswers;
	}
	public void setWrongAnswers(Integer wrongAnswers) {
		this.wrongAnswers = wrongAnswers;
	}
	public Double getEf() {
		return ef;
	}
	public void setEf(Double ef) {
		this.ef = ef;
	}
}
